package com.css.zfzx.sjcj.modules.hddcGeologicalSvyPoint.repository;

import com.css.zfzx.sjcj.modules.hddcGeologicalSvyPoint.repository.entity.HddcGeologicalsvypointEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @author lihelei
 * @date 2020-11-27
 */
public interface HddcGeologicalsvypointRepository extends JpaRepository<HddcGeologicalsvypointEntity, String> {
    @Query(nativeQuery = true, value = "select * from hddc_Geologicalsvypoint where project_name in :projectIds")
    List<HddcGeologicalsvypointEntity> queryHddcGeologicalsvypointsByProjectId(List<String> projectIds);
    @Query(nativeQuery = true, value = "select * from hddc_Geologicalsvypoint where task_name in :projectIds")
    List<HddcGeologicalsvypointEntity> queryHddcGeologicalsvypointsByTaskId(List<String> projectIds);
}
